package com.caisejingyu.whales.common.api.interceptor;

import android.support.annotation.NonNull;


import com.caisejingyu.whales.common.api.ApiConfig;

import okhttp3.Request;

/**
 * 下载、上传拦截器
 *
 * @author Classic
 * @version v1.0, 2017/8/21 下午4:16
 */
@SuppressWarnings("unused")
public class StreamInterceptor extends AbsInterceptor {

    public StreamInterceptor(@NonNull ApiConfig apiConfig) { super(apiConfig); }

    Request.Builder appendHeader(Request.Builder builder) {
        return super.appendHeader(builder)
                    .addHeader("Accept", "application/octet-stream");
    }
}